package edu.zju.udms.dnavigator.core.entity;

public class Relation extends MetaObject{

	private static final long serialVersionUID = -1434567567611885642L;

	@AttributeType(AttributeTypeEnum.Key)
	public String fromId;
	
	@AttributeType(AttributeTypeEnum.Key)
	public String toId;
	
	@AttributeType(AttributeTypeEnum.Key)
	public String label;
	
	public Relation(){}

	public Relation(String fromId, String toId, String label) {
		super();
		this.fromId = fromId;
		this.toId = toId;
		this.label = label;
	}


	public String getFromId() {
		return fromId;
	}

	public void setFromId(String fromId) {
		this.fromId = fromId;
	}

	public String getToId() {
		return toId;
	}

	public void setToId(String toId) {
		this.toId = toId;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
}
